package com.jolink.omiis.wechat.mongo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;

/**
 * @author wangyq9527
 *
 */
public class AbstractMongodbProcessor {

	private static Logger logger = LoggerFactory.getLogger(AbstractMongodbProcessor.class);

	public MongoCollection getMongoCollection(String collectionName) {
		return MongodbManager.getInstance().getMongoCollection(collectionName);
	}
	
	
	public MongoDatabase getMongoDatabase(){
		return MongodbManager.getInstance().getMongoDatabase();
	}
}
